<!-- BEGIN PAGE HEADER-->
<h3 class="page-title">
    朋友圈列表
    <small></small>
</h3>
<div class="page-bar">
    <ul class="page-breadcrumb">
        <li>
            <i class="fa fa-home"></i>
            <a href="index.html">Home</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">用户管理</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">朋友圈列表</a>
        </li>
    </ul>
</div>
<!-- END PAGE HEADER-->
<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">消息提示</h4>
            </div>
            <div class="modal-body" style="text-align:center; font-size: 16px">
                屏蔽/屏蔽此数据?
            </div>
            <div class="modal-footer">
                <button type="button" class="btn blue table-group-action-del" data-dismiss="modal">确定</button>
                <button type="button" class="btn default" data-dismiss="modal">取消</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN EXAMPLE TABLE PORTLET-->
        <div class="portlet box grey-cascade">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-globe"></i>朋友圈列表
                </div>
                <div class="tools">
                    <a href="javascript:;" class="collapse">
                    </a>
                    <a href="javascript:;" class="reload">
                    </a>
                    <a href="javascript:;" class="remove">
                    </a>
                </div>
            </div>
            <div class="portlet-body">
                <div class="table-toolbar">
                    <div class="row">
                        <form role="search" action="#">
                            <div class="col-md-2 col-sm-12">
                                <select class="form-control" name="class">
                                    <option value="">选择搜索类型</option>
                                    <option value="1">搞起ID</option>
                                    <option value="2">搞起昵称</option>
                                </select>
                            </div>
                            <div class="col-md-2 col-sm-12">
                                <input type="text" class="form-control" name="keyword" placeholder="请输入搜索内容" value="">
                            </div>
                            <div class="col-md-8 col-sm-12">
                                <div class="table-group-actions pull-right">
                                    <!--select class="table-group-action-input form-control input-inline input-small input-sm" name="authentication">
                                        <option value="">是否会员...</option>
                                        <option value="1">是</option>
                                        <option value="2">否</option>
                                    </select>
                                    <select class="table-group-action-input form-control input-inline input-small input-sm" name="gender">
                                        <option value="">请选择性别...</option>
                                        <option value="1">男</option>
                                        <option value="2">女</option>
                                    </select-->
                                    <button class="btn btn-sm yellow submit">
                                        <i class="fa fa-search"></i>
                                        搜索
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <table class="table table-striped table-bordered table-hover" id="sample_1">
                    <thead>
                    <tr>
                        <th class="table-checkbox">
                            <input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes"/>
                        </th>
                        <th>
                            搞起ID
                        </th>
                        <th>
                            搞起昵称
                        </th>
                        <th>
                            内容
                        </th>
                        <th>
                            图片
                        </th>
                        <th>
                            时间
                        </th>
                        <th>
                            评论
                        </th>
                        <th>
                            详情
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach($lists as $value) { ?>
                        <tr class="odd gradeX">
                            <td>
                                <input type="checkbox" class="checkboxes" value="<?php echo $value['id']; ?>"/>
                            </td>
                            <td>
                                <?php echo $value['member_id']; ?>
                            </td>
                            <td>
                                <?php echo $value['member_nick_name'];?>
                            </td>
                            <td>
                                <?php echo $value['content'];?>
                            </td>
                            <td>
                                图片
                            </td>
                            <td>
                                <?php echo date('Y-m-d H:i:s',$value['add_time']); ?>
                            </td>
                            <td>
                                <a href="/admin/comment/list?class=3&keyword=<?php echo $value['id']; ?>">评论（<?php echo $value['comment'];?>）</a>
                                <a href="/admin/friendcircle/support?circle_id=<?php echo $value['id']; ?>"><i class="icon-heart"></i>（<?php echo $value['support'];?>）</a>
                            </td>
                            <td>
                                <a href="/admin/friendcircle/edit?id=<?php echo $value['id'];?>" title="点击查看">
                                    详情
                                </a>
                            </td>
                            <td>
                                <?php if($value['status'] == 1){ ?>
                                <a href="#portlet-config" data-toggle="modal" class="btn btn-xs red delData"
                                   value="/admin/friendcircle/del?id=<?php echo $value['id'].'&status='.$value['status'];?>">屏蔽</a>
                                <?php }elseif($value['status'] == 2){ ?>
                                <a href="#portlet-config" data-toggle="modal" class="btn btn-xs red delData"
                                   value="/admin/friendcircle/del?id=<?php echo $value['id'].'&status='.$value['status'];?>">取消屏蔽</a>
                                <?php } ?>
                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>
                <?php
                $data = [
                    'count'   => $this->count,
                    'page'    => $this->page,
                    'perPage' => $this->perPage,
                ];
                echo $this->render('../../../views/layouts/pager.phtml', $data);
                ?>
            </div>
        </div>
        <!-- END EXAMPLE TABLE PORTLET-->
    </div>
</div>
<!-- END PAGE CONTENT-->